package com.qyhl.module_home.home.fuquan;

import com.qyhl.webtv.commonlib.entity.home.GatherBean;
import com.qyhl.webtv.commonlib.entity.home.HomeBean;
import com.qyhl.webtv.commonlib.entity.home.NewsBean;
import com.qyhl.webtv.commonlib.entity.live.ShoppingListBean;
import com.qyhl.webtv.commonlib.entity.news.AdvHomeBean;

import java.util.List;

public interface FuQuanHomeContract {
    interface FuQuanHomeView{
        void setBanner(boolean b, List<HomeBean.TopNews> topNewsList);

        void setAdvBanner(boolean b, List<AdvHomeBean> list);

        void setGatherNews(List<GatherBean> data, boolean isMore);


        void showError(String msg);

        void showMessage(String msg);

        void showEmpty(String s);

        void setNavigation(boolean isShow, List<HomeBean.SecMenus> list);

        void setTopShop(List<ShoppingListBean> bean);

        void setTodayRec(List<NewsBean> beanList);
    }

    interface FuQuanHomePresenter{
        void getConfig();

        void getAdvData();

        void onDestroy();

        void getGatherData(int page, int lastNewsId, String type);

        void getTopShop();

        void getTodayRec(int id);
    }

    interface FuQuanHomeModelPresenter{
        void setError(int i, String s);

        void setConfig(HomeBean data);

        void setAdvBanner(boolean b, List<AdvHomeBean> o);

        void setGatherNews(List<GatherBean> response, boolean b);

        void setTopShop(List<ShoppingListBean> bean);

        void setTodayRec(List<NewsBean> beanList);
    }

    interface FuQuanHomeModel{
        void getConfig();

        void getAdvData();

        void getGatherData(int page, int lastNewsId, String type);

        void getTopShop();

        void getTodayRec(int id);
    }
}
